package com.foo.wechat.domain;

import com.foo.common.annotation.Excel;
import com.foo.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 项目配置对象 wx_config
 * 
 * @author foo
 * @date 2020-04-30
 */
@Getter
@Setter
public class WxConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 配置类型 */
    @Excel(name = "配置类型")
    private Integer type;

    /** 配置名称 */
    @Excel(name = "配置名称")
    private String name;

    /** 配置键名 */
    @Excel(name = "配置键名")
    private String key;

    /** 配置键值 */
    @Excel(name = "配置键值")
    private String value;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("name", getName())
            .append("key", getKey())
            .append("value", getValue())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
